package com.ccc.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Demand entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "demand")
public class Demand implements java.io.Serializable {

	// Fields

	private Integer demandId;
	private Integer adWeight;
	private Integer freshWeight;
	private Integer tailPrice;
	private Integer performanceRate;
	private Integer marketdemand;

	// Constructors

	/** default constructor */
	public Demand() {
	}

	/** full constructor */
	public Demand(Integer adWeight, Integer freshWeight,
			Integer tailPrice, Integer performanceRate) {
		this.adWeight = adWeight;
		this.freshWeight = freshWeight;
		this.tailPrice = tailPrice;
		this.performanceRate = performanceRate;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "demandId", unique = true, nullable = false)
	public Integer getDemandId() {
		return this.demandId;
	}

	public void setDemandId(Integer demandId) {
		this.demandId = demandId;
	}


	public Integer getAdWeight() {
		return adWeight;
	}

	public void setAdWeight(Integer adWeight) {
		this.adWeight = adWeight;
	}

	public Integer getFreshWeight() {
		return freshWeight;
	}

	public void setFreshWeight(Integer freshWeight) {
		this.freshWeight = freshWeight;
	}

	public Integer getTailPrice() {
		return tailPrice;
	}

	public void setTailPrice(Integer tailPrice) {
		this.tailPrice = tailPrice;
	}

	public Integer getPerformanceRate() {
		return performanceRate;
	}

	public void setPerformanceRate(Integer performanceRate) {
		this.performanceRate = performanceRate;
	}

	public Integer getMarketdemand() {
		return marketdemand;
	}

	public void setMarketdemand(Integer marketdemand) {
		this.marketdemand = marketdemand;
	}

}